<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html><head>
<meta charset="utf-8">
<link href="/Public/css/Home/login.css" rel="stylesheet" type="text/css">
<link href="/Public/css/Home/base.css" rel="stylesheet" type="text/css">
<link href="/Public/css/Home/header.css" rel="stylesheet" type="text/css">
<link href="/Public/css/Home/footer.css" rel="stylesheet" type="text/css">
<script src="/Public/js/Home/jquery-1.7.1.min.js" type="text/javascript"></script>
<title>新起点(辽宁)财税咨询服务有限公司</title>
</head>


<body>
<!--头部开始-->
<div class="page_header">
<div class="header_top bgblue">
    <div class="header_topT contact">
        <div class="header_topL">您好：欢迎进入新起点(辽宁)财税咨询服务官网</div>	
		<?php if(session('LOGIN_USERID') != ''): ?><div class="header_topR">
            <span>你好，<?php echo session('LOGIN_USERNAME');?></span><span>|</span>
            <a href="<?php echo U('user/index');?>">个人中心</a><span>|</span>
            <a href="javascript:void(0);">消息（1）</a><span>|</span>
            <a href="javascript:void(0);">在线客服</a><span>|</span>
            <a href="<?php echo U('index/logout');?>">退出</a>
        </div><?php endif; ?>
    </div>
    <div class="clean"></div>
</div>
<!--头部结束-->

<!--logo开始-->
<div class="header contact">
    <div class="header_logo">
    	<div class="header_logoimg" style="cursor:pointer" onclick="window.location.href='/'" ><img src="/Public/image/Home/logo.jpg"></div>
        <div class="header_text">
		<?php if(CONTROLLER_NAME.'/'.ACTION_NAME == 'Index/login'): ?>欢迎登录<?php endif; ?>
		<?php if(CONTROLLER_NAME.'/'.ACTION_NAME == 'Index/register'): ?>用户注册<?php endif; ?>
		<?php if(CONTROLLER_NAME.'/'.ACTION_NAME == 'Index/forget_pwd'): ?>找回密码<?php endif; ?>
		<?php if(CONTROLLER_NAME.'/'.ACTION_NAME == 'Index/reset_pwd'): ?>找回密码<?php endif; ?>
		</div>
    	<div class="header_logotel"><img src="/Public/image/Home/header_tel.jpg"></div>
        <div class="clean"></div>
    </div>
</div>
<!--logo结束-->
</div>
<!----------------------------------------------------------------导航线结束---------------------------------------------------------------->

<div class="login_bg">
<div class="login_contact">
    <div class="login_transparent">
    <div class="login">
    	<div class="title">用户登录</div>
    	<div class="box">
<form action="/Home/Index/dologin" method="post" id="form">
        	<div class="form">
            	<div class="form_name">账号</div>
                <div class="form_M"><input class="input-control" type="text" name="username" id="uname" value="<?php echo ($username); ?>" placeholder="请输入手机号码"></div>
                <div class="clean"></div>
            </div>
         	<div class="form">
            	<div class="form_name">密码</div>
                <div class="form_M"><input class="input-control" type="password" name="password" id="pwd" value="<?php echo ($password); ?>" placeholder="请输入密码"></div>
                <div class="clean"></div>
            </div> 
            <div class="reg" style="display:none"><span><img src="/Public/image/Home/icons1.jpg"></span>公共场所不建议自动登录,以防账号丢失</div>
			<div class="regs" style="display:none"><span><img src="/Public/image/Home/icons2.jpg"></span>账户名与密码不匹配，请重新输入</div> <!-- 错误条用 误删 --> 
            
            <div class="automatic"><input class="choose" type="checkbox" value="1" name="remember" id="remember"></div>   
            <div class="automatic_text"><label for="remember">下次自动登录</label><a href="/Home/Index/forget_pwd" class="forget">忘记密码?</a></div> 
            <div class="clean"></div> 
            <div class="btn btncommonhover" onclick="sub_login();">立即登录</div>
     <div class="text">没有帐号？<a href="/Home/Index/register">免费注册</a></div>
</form>
 </div>
</div>
</div>
</div>
</div>

<!----------------------------------------------------------------内容结束---------------------------------------------------------------->

<script>
	window.onload = function() {
		// 创建 input 元素
		var checkbox = document.getElementById("remember");
		checkbox.onclick = function() {
			if(this.checked){
				$('.regs').hide();
				$('.reg').show();
			}else{
				$('.reg').hide();
			}
		}
	};
	
	function sub_login(){
		var uname=$("#uname").val();
		var pwd=$("#pwd").val();
		if(!uname){
			$('.reg').hide();
			$('.regs').show();
			$('.regs').html('<span><img src="/Public/image/Home/icons2.jpg"></span>请输入账号！');
			document.getElementById("uname").focus();
			return false;
		}else{
			$('.regs').hide();
		}
		if(!pwd.replace(/\s+/g, "")){
			$('.reg').hide();
			$('.regs').show();
			$('.regs').html('<span><img src="/Public/image/Home/icons2.jpg"></span>请输入密码！');
			document.getElementById("pwd").focus();
			return false;
		}else{
			$('.regs').hide();
		}
		$.post('<?php echo U("index/get_username");?>',{uname:uname},function(data){
			if(data.code==0){
				$("#form").submit();
			}else{
				$('.reg').hide();
			    $('.regs').show();
				$('.regs').html('<span><img src="/Public/image/Home/icons2.jpg"></span>账号不存在！');
				document.getElementById("uname").focus();
				return false;
			
			}
	    },'json');
	}
</script>

<!--尾部开始-->
<link href="/Public/css/Home/footer.css" rel="stylesheet" type="text/css">
<div class="footer">
    <div class="footreC contact">

        <div class="footreC_left">
            <div class="footreC_leftT">
                <a href="<?php echo U('PartnerIndex/index');?>">寻找合伙人</a>|
                <a href="<?php echo U('Apply/index');?>">创业投资</a> |
                <a href="<?php echo U('Project/index');?>">创业项目</a>|
                <a href="<?php echo U('Service/index');?>">一站式服务</a> |
                <a href="<?php echo U('ActivityIndex/index');?>">活动专区</a> |
                <a href="<?php echo U('service/about');?>">联系我们</a>
            </div>
            <div class="footreC_leftX"></div><div class="footreC_leftS"></div>
            <div class="footreC_leftT">
                    友情链接：
                    <a target="_blank" href="http://dev.360.cn/">360移动开放平台</a>|
                    <a target="_blank" href="http://www.zvca.org/">中关村私募股权投资协会</a>|
                    <a target="_blank" href="http://www.upyun.com/">又拍云</a>|
                    <a target="_blank" href="http://www.ycpai.com/index">缘创派</a>|
                    <a target="_blank" href="http://www.lagou.com/">拉勾招聘</a>|
                    <a target="_blank" href="http://www.gbicom.cn/">快法务</a>|
                    <a target="_blank" href="http://www.laohucaijing.com/">环球老虎财经</a>|
                    <a target="_blank" href="http://www.gbtags.com/gb/index.htm">极客标签</a>|
                    <a target="_blank" href="http://www.tmtpost.com">钛媒体</a>|
                    <a target="_blank" href="http://www.zczj.com/">众筹之家</a>|
                    <a target="_blank" href="http://www.iprbank.cn">中细软</a>|
                    <a target="_blank" href="http://aso100.com/">ASO100</a>
            </div>
            <div class="footerC_leftB">
                <p>版权归&nbsp;&nbsp;&nbsp;新起点（辽宁）财税咨询服务有限公司所有&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ICP备案编号：正在进行备案</p>
                <p>地址：沈阳市沈河区银河国际A座17楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    咨询电话：400-805-2838 / 87267777 / 13386896688&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    Email:1966914080@qq.com</p>
            </div>
        </div>

    </div>
</div>
<!--尾部结束-->

<!--浮动开始-->
<div id="service-sidebar" style="display: block;">
    <a id="app_qr" class="show-hover-image" href="#"><img src="/Public/image/Home/icon01.png" width="25" height="25"><span>下载APP</span></a>
    <a id="contact_phone" class="show-hover-image" href="javascript:void(0)"><img src="/Public/image/Home/icon02.png" width="25" height="25"><span>客服热线</span></a>
    <a  href='/service/faq' target="_blank" ><img src="/Public/image/Home/icon03.png" width="25" height="25"><span>问答中心</span></a>
    <a class="gotop"><img src="/Public/image/Home/icon05.png" width="25" height="25"><span>返回顶层</span></a>
    <div class="images">
        <img class="app_qr" src="/Public/image/Home/app_qr_new.png" alt="App qr new" style="display: none;">
        <img class="contact_phone" src="/Public/image/Home/contact_phone_new.png" alt="Contact phone new" style="display: none;">
    </div>
</div>
<!--浮动结束-->


<script>
    $(function(){
        $(window).scroll(function(){
            if($(window).scrollTop()>100){
                $("#service-sidebar").show()
            }else{
                $("#service-sidebar").hide()
            }
        })
        $(".gotop").click(function(){
            $("html,body").animate({scrollTop:"0px"},200);
        })

        var serviceSidebar = $('#service-sidebar')
        $('.show-hover-image', serviceSidebar).hover(function(){
            var that = this;
            var clazz = $(this).attr('id');
            var img = serviceSidebar.find('img.' + clazz)
            img.fadeIn('fast');
        }, function(){
            var that = this;
            var clazz = $(this).attr('id');
            serviceSidebar.find('img.' + clazz).fadeOut('fast');
        });
    })
</script>
</body>
</html>